<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Fetch使用</title>
</head>
<body>
    
</body>
<script>
    let headers = new Headers({
        'Access-Control-Allow-Credentials':'true',
    });
    fetch("https://www.baidu.com",{
        headers: headers
    })
    .then(function(response){
        console.log(response);
        return response;
    })
    .then(function(myBlob){
        return;
    });
</script>
</html>